package com.msb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.utils.PageUtils;
import com.msb.mall.product.entity.AttrEntity;
import com.msb.mall.product.entity.vo.AttrGroupRelationVo;
import com.msb.mall.product.entity.vo.AttrResponseVo;
import com.msb.mall.product.entity.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lwq
 * @email 1907326957@qq.com
 * @date 2024-06-12 20:30:41
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBastPage(Map<String, Object> params,Long catId,String attrType);

    PageUtils querySalePage(Map<String, Object> params,Long catId);

    void saveAttr(AttrVo attr);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateBaseAttr(AttrVo attr);

    void removeByIdsDetails(List<Long> list);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void deleteAttrRelation(AttrGroupRelationVo[] vos);

    PageUtils getAttrNoRelation(Long attrGroupId, Map<String, Object> params);

    void attrBatchRelation(List<AttrGroupRelationVo> vos);
}

